package com.zs.members.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @program: clms-nine
 * @description: 乘客类
 * @author: 张硕
 * @create: 2021-07-23 18:34
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_common_passenger")
@ApiModel(value = "乘客对象",description = "会员管理表")
public class Passenger {

    @ApiModelProperty(value = "乘客ID")
    @TableId(value = "id", type= IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "会员ID")
    @TableField("member_id")
    private Integer memberId;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "手机")
    @TableField("phone_num")
    private String phoneNum;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;
}
